package com.jsle.financial.dao;

import com.jsle.financial.domain.Node;
import com.jsle.financial.domain.User;
import com.jsle.financial.domain.Workflow;
import com.jsle.financial.vo.Result;

public interface WorkflowDao{
	
	public Result saveAmountWorkflow(Workflow workflow);
	
	public Result saveAmountNode(Node node);
	
	public Result queryWorkflowByCode(String workflowCode);
	
	public Result updateWorkflow(Workflow workflow);;
	
	public Result queryWorkflowByUser(User user);
	
	public Result queryWorkflowBySelf(Workflow workflow);
	
	public Result queryWorkflowAndNodes(Workflow workflow);
	
	public Result queryNodes(Workflow workflow);
	
	public Result updateNode(Node node);
	
	/**
	 * 查询审批结果
	 * @param workflow
	 * @return
	 */
	public Result queryWorkflowByWorkflow(Workflow workflow);
}
